package QAInfo::Schema::InfoDB::Editions;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Core");
__PACKAGE__->table("editions");
__PACKAGE__->add_columns(
  "id",
  { data_type => "INT", default_value => undef, is_nullable => 0, size => 10 },
  "name",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 255,
  },
  "protection",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 100,
  },
  "oem",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 255,
  },
  "media",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 30,
  },
  "build_type",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 10,
  },
);
__PACKAGE__->set_primary_key("id");


# Created by DBIx::Class::Schema::Loader v0.04004 @ 2008-07-16 00:40:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZET+hd5hdgMm0/o8oy8JkQ

sub compound_name {
    my ($self) = @_;
    my $name       = $self->name       || '';
    my $protection = $self->protection || '';
    my $build_type = $self->build_type || '';

    my $compound_name = "$name $protection $build_type";
    return $compound_name;
}

# You can replace this text with custom content, and it will be preserved on regeneration
1;
